﻿namespace MachineVision.API.Middlewares
{
    public class AppSettings: IAppSettings
    {

        public AppSettings(IConfiguration configuration)
        {
            var config = configuration.GetSection("YunMou");
            token_url = config["token_url"];
            client_id = config["client_id"];
            client_secret = config["client_secret"];
            video_url = config["video_url"];
            device_serial = config["device_serial"];
            protocol = config["protocol"];
            uikit_url = config["uikit_url"];

            var config2 = configuration.GetSection("Local");
            address = config2["address"];
        }
    }
}
